home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / fileutils_3_3.lha / fileutils-3.3 / ChangeLog next >
Text File  |  1992-08-01  |  66KB  |  1,856 lines

  1. Thu Jul 23 14:29:17 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  2.  
  3.     * Version 3.3.
  4.  
  5. Sat Jul 18 20:12:56 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  6.  
  7.     * idcache.c: Use uid_t and gid_t.
  8.     (getuidbyname, getgidbyname): New functions, for cpio.
  9.  
  10.     * userspec.c: New file, from code in chown.c.
  11.     * chown.c: Use it.
  12.  
  13. Fri Jul 17 00:43:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  14.  
  15.     * system.h: Protect from getopt prototype in stdlib.h.
  16.  
  17.     * ls.c [_AIX]: Include sys/ioctl.h.
  18.     * fsusage.c: Include sys/vfs.h if AIX PS/2, but not if RS6000.
  19.     From tranle@intellicorp.com (Minh Tran-Le).
  20.  
  21.     * mvdir.c: Declare getcwd.  From Francois Pinard.
  22.  
  23.     * chown.c, chgrp.c, install.c [_POSIX_SOURCE]: Define endpwent
  24.     and endgrent as empty.
  25.  
  26.     * makepath.c (make_path): Add cast to alloca call.
  27.     From Jim Meyering.
  28.  
  29.     * cp.c (copy, re_protect), mv.c (copy_reg): Notify root of
  30.     EPERM errors from chown.
  31.     * makepath.c, install.c [AFS]: Ignore EPERM from chown.
  32.  
  33.     * system.h (ST_NBLOCKS) [_AIX && _I386]: st_blocks is in 4K units.
  34.     * fsusage.c (statfs) [_AIX && _I386]: Supply this function.
  35.     From tranle@intellicorp.com (Minh Tran-Le).
  36.  
  37. Thu Jul 16 23:08:39 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  38.  
  39.     * df.c (print_header, show_dev): In inode format, print the
  40.     total number of inodes as well.
  41.  
  42.     * fsusage.[ch], df.c (show_dev): Count internally using
  43.     512-byte blocks, not 1024-byte, to avoid rounding errors.
  44.  
  45. Mon Jul  6 20:03:54 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  46.  
  47.     * rename.c: Use S_ISDIR instead of S_IFDIR.
  48.  
  49. Fri Jul  3 14:36:34 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  50.  
  51.     * fileblocks.c, system.h, cp.c, dd.c, mv.c, touch.c: Change
  52.     FOO_MISSING to HAVE_FOO.
  53.  
  54. Wed Jun  3 19:28:04 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  55.  
  56.     * xgetcwd.c (xgetcwd): Accept errno==EINVAL as nonfatal.
  57.  
  58. Wed May 20 00:05:52 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  59.  
  60.     * system.h: If we include a header file specifically to get
  61.     major et al., assume we have them.
  62.  
  63. Mon May 11 20:04:10 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  64.  
  65.     * chgrp.c, chown.c: --show-changes -> --changes.
  66.  
  67. Sat May  9 18:39:38 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  68.  
  69.     * system.h: Define DEV_BSIZE if not defined.
  70.  
  71. Thu Apr 30 13:55:37 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  72.  
  73.     * du.c (count_entry): Remove the trailing "/" before printing.
  74.  
  75. Wed Apr 29 11:34:38 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  76.  
  77.     * rename.c (rename): If removing `from' fails, remove `to' to
  78.     clean up.  From Matthew Farwell <dylan@ibmpcug.co.uk>.
  79.  
  80. Thu Apr 23 21:14:16 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  81.  
  82.     * ls.c (gobble_file): Only read the link contents if -l or the
  83.     file was named on the command line.
  84.  
  85. Wed Apr 22 02:16:38 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  86.  
  87.     * fsusage.c (get_fs_usage) [STAT_STATFS4 and _SEQUENT_]: Has f_bavail.
  88.     From Donn Cave <donn@carson.u.washington.edu>.
  89.  
  90.     * getversion.c (get_version): If given invalid arg, exit.
  91.  
  92.     * cp.c (copy): Fix mode with chmod if copying as a regular file.
  93.  
  94.     * system.h, dd.c: SIGTYPE -> RETSIGTYPE.
  95.  
  96. Sat Apr 18 00:18:41 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  97.  
  98.     * fsusage.[ch] (get_fs_usage): Take another arg, the device name.
  99.     * fsusage.c (get_fs_usage) [STAT_READ]: Fix number of inodes
  100.     calculation.  Use the device name.  From Brian Matthews.
  101.     * df.c (show_dev): Pass the device name.
  102.  
  103. Fri Apr 17 11:25:28 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  104.  
  105.     * fsusage.c: Special-case AIX.
  106.  
  107.     * mountlist.c [MOUNTED_VMOUNT]: New code for AIX, from
  108.     Garrett A. Wollman (wollman@uvm.edu).
  109.  
  110.     * ls.c (gobble_file): Use stat, not lstat, on symlinked-to
  111.     file, for Unix compat.  From ian@airs.com (Ian Lance Taylor).
  112.  
  113. Mon Apr  6 14:16:06 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  114.  
  115.     * xgetcwd.c: Include stdio.h to get NULL.
  116.  
  117. Thu Apr  2 14:41:18 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  118.  
  119.     * df.c: Call sync only once, instead of once per filesystem.
  120.  
  121. Wed Apr  1 16:00:08 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  122.  
  123.     * Version 3.2.
  124.  
  125. Tue Mar 31 13:39:06 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  126.  
  127.     * df.c (main): stat all arg pathnames before getting
  128.     list of mounted filesystems.
  129.     (show_entry, show_point): Take a struct stat * as another arg,
  130.     to avoid repeatedly statting files.
  131.  
  132. Mon Mar 30 12:21:28 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  133.  
  134.     * install.c (main): Allow symbolic modes for -m.
  135.     (atoo): Function removed.
  136.  
  137.     * mkdir.c (main): Include invalid -m arg in error message.
  138.  
  139.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Go back to using
  140.     512 instead of f_bsize.  Empirically, it gives the right answer.
  141.  
  142.     * mvdir.c (main): Don't deref NULL pointer on last iteration
  143.     of loop.
  144.  
  145.     * fsusage.c (adjust_blocks): New function.
  146.     (get_fs_usge): Call it.
  147.  
  148.     * mvdir.c (main): Don't possibly try to use ".." entry of new dir
  149.     before creating it.
  150.  
  151.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Use f_bsize member
  152.     of struct statfs.
  153.  
  154. Sat Mar 28 00:36:57 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  155.  
  156.     * dd.c (copy_simple, copy_with_block, copy_with_unblock,
  157.     translate_buffer, swab_buffer): New functions, mostly made
  158.     from code taken from copy.  Incorporate some optimizations due
  159.     to Stuart Kemp: For each type of conversion, only check
  160.     whether to do it once per buffer read, instead of once per character.
  161.     (copy): If conv=block and the input didn't end with a newline,
  162.     pad the final block with spaces.
  163.  
  164. Wed Mar 25 14:35:17 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  165.  
  166.     * system.h: Don't use BSIZE for calculating ST_BLKSIZE if it
  167.     isn't defined.
  168.  
  169.     * mountlist.c [MOUNTED_FREAD], fsusage.c [STAT_READ]: New code
  170.     for SVR2, from archive@ideahb.sublink.org (Lele Gaifax).
  171.  
  172. Tue Mar 24 14:53:19 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  173.  
  174.     * mvdir.c: Use getcwd, not getwd.
  175.  
  176.     * system.h, xgetcwd.c: Redo how PATH_MAX is figured out, to
  177.     work on SVR3.
  178.  
  179.     * fsusage.c, mountlist.c: New files split from fsinfo.c.
  180.     Revise conditionals to make the two files independant of each other.
  181.     * fsusage.h, mountlist.h: New files split from fsinfo.h.
  182.     * df.c: Use them.
  183.  
  184. Mon Mar 23 13:01:07 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  185.  
  186.     * fsinfo.c (read_filesystem_list): Take another arg, all_fs.
  187.     [FS_MNTENT]: Ignore type "auto" (from amd) as well as "ignore"
  188.     (from automounter), if not all_fs.
  189.     * df.c (main): Pass the new arg.
  190.  
  191.     * fsinfo.h: Add function decls.
  192.  
  193.     * chown.c, chgrp.c, chmod.c: Remove -L option.  Didn't handle
  194.     changing symlinks correctly and wasn't very useful.
  195.  
  196. Sat Mar 14 17:38:38 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  197.  
  198.     * dirname.c (dirname): Don't use strdup.
  199.  
  200. Fri Mar 13 14:56:15 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  201.  
  202.     * rm.c (remove_file, remove_dir, clear_directory): If -f was
  203.     given, don't complain about ENOENT when removing.
  204.  
  205. Mon Mar  9 00:09:48 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  206.  
  207.     * install.c (main): Allow making multiple dirs with -d.
  208.     (usage): Document it.
  209.     * makepath.c (make_path): Clear umask while working and
  210.     restore it when done.  chmod dirs that should have
  211.     set[ug]id or sticky bits set, if we're chowning them.
  212.     Make chown failure nonfatal.  Do chmod after chown, not before.
  213.  
  214.     * du.c (count_entry): Set exit_status on nonfatal error.
  215.     (main): Use it.
  216.  
  217. Sun Mar  8 22:07:50 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  218.  
  219.     * du.c (du_files): New function, from code in main.
  220.     Use xgetcwd instead of getcwd or getwd.
  221.     * system.h: Don't declare getcwd or getwd.
  222.  
  223.     * xgetcwd.c: New file.
  224.  
  225.     * ls.c (main): Exit with `exit_status' instead of 0.
  226.     (print_dir, gobble_file, get_link_name): Set exit_status on error.
  227.  
  228.     * ls.c (print_long_format): Allow a slop factor for deciding
  229.     what is in the future.
  230.  
  231.     * All programs: Change usage messages and documentation for
  232.     long options to use -- instead of +.
  233.  
  234.     * df.c (main, usage): Add -v option for SysV compat.
  235.  
  236. Tue Feb  4 12:45:09 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  237.  
  238.     * fileblocks.c [!NINDIR]: Try to fake indirect block info for
  239.     systems that don't define it.
  240.  
  241. Thu Jan 16 01:04:16 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  242.  
  243.     * df.c (print_header): Capitalize some header words for
  244.     POSIX.2a draft 8.
  245.  
  246. Sat Jan  4 01:19:25 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  247.  
  248.     * posixtm.y: Capitalize token name.
  249.  
  250. Tue Dec 24 01:05:44 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  251.  
  252.     * system.h, makepath.c, idcache.c, eaccess.c, backupfile.c,
  253.     install.c, dd.c, chown.c, chgrp.c: Change POSIX ifdefs to
  254.     HAVE_UNISTD_H.
  255.  
  256. Wed Dec 18 16:42:00 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  257.  
  258.     * system.h: To get major, minor and makedev, don't check for
  259.     _POSIX_SOURCE and USG; use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
  260.  
  261. Mon Dec 16 18:16:42 1991  David J. MacKenzie  (djm at wombat.gnu.ai.mit.edu)
  262.  
  263.     * dd.c (skip): Fix typos in arg name.
  264.     (output_char): Fix off by one error in check.
  265.  
  266. Sun Dec  8 19:55:06 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  267.  
  268.     * system.h: Only define major et al. if not already defined.
  269.  
  270. Fri Dec  6 18:26:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  271.  
  272.     * dd.c (main) [POSIX]: Use sigaction instead of signal, which
  273.     POSIX doesn't have.
  274.  
  275.     * df.c, du.c, ls.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  276.  
  277. Wed Dec  4 14:30:16 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  278.  
  279.     * dd.c: Cleanups, mostly from Stuart Kemp:
  280.     (output_char): New macro, from code in copy.
  281.     (write_output): New function, used by output_char, from code
  282.     in copy.
  283.     (skip): New function, from code in copy.
  284.     (copy): Use output_char and skip.
  285.     Simplify test for quitting before main loop.
  286.     Zero buffer using bzero for speed.
  287.  
  288. Sun Nov 17 19:39:04 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  289.  
  290.     * fsinfo.c (get_fs_usage) [FS_MNTENT]: Take blocksize into account.
  291.     (read_filesystem_list) [FS_MNTENT]: Ignore filesystems of type
  292.     "ignore" (automounter dummy entries).
  293.  
  294.     * install.c (change_attributes): Do chmod even if chown fails.
  295.  
  296. Thu Oct 24 23:50:46 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  297.  
  298.     * chown.c (change_file_owner), chgrp.c (change_file_group):
  299.     don't skip symlinks, since the chown system call works on them.
  300.  
  301. Fri 18 Oct 1991 23:29:24  Jim Meyering (meyering at wombat)
  302.  
  303.     * configure: fixed test to detect sequent's strange interpretation
  304.     of utime(file, NULL).
  305.  
  306. Fri Oct 18 00:30:42 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  307.  
  308.     * eaccess.c: GID_T -> GETGROUPS_T, for clarity.
  309.  
  310. Sat Oct 12 12:25:55 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  311.  
  312.     * configure: Define uid_t and gid_t as int if they're not
  313.     defined in sys/types.h.  That's probably right for old Unixes
  314.     and avoids trying to find the C preprocessor.
  315.  
  316.     * df.c: Don't declare sync, to avoid conflict with Minix (and
  317.     maybe others) unistd.h.
  318.     (show_point): Cast -1 to dev_t before comparing, in case dev_t
  319.     is unsigned.  From Rainer Orth.
  320.  
  321.     * chown.c [!POSIX]: Declare getgrgid.
  322.  
  323. Fri Sep 13 14:55:41 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  324.  
  325.     * eaccess.c [POSIX]: Always use sysconf to get NGROUPS_MAX.
  326.  
  327. Thu Sep  5 23:40:39 1991  David J. MacKenzie  (djm at apple-gunkies)
  328.  
  329.     * system.h: Instead of defining getwd in terms of getcwd with
  330.     PATH_MAX as an arg (which might be -1 on POSIX), define getcwd
  331.     in terms of getwd.
  332.     * du.c (main): Call getcwd with path_max as an arg.
  333.  
  334.     * install.c (change_attributes): Do chown before chmod, so
  335.     chown doesn't remove set[ug]id bits.
  336.  
  337. Wed Aug 28 20:53:50 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  338.  
  339.     * Version 3.1.
  340.  
  341. Mon Aug 26 15:44:16 1991  David J. MacKenzie  (djm at pogo.gnu.ai.mit.edu)
  342.  
  343.     * du.c (main): If pathconf fails, use 1024 for PATH_MAX.  This
  344.     happens if "/" is NFS-mounted.
  345.  
  346. Sun Aug 25 00:56:11 1991  David J. MacKenzie  (djm at apple-gunkies)
  347.  
  348.     * df.c, fsinfo.c, fsinfo.h: New program.
  349.     * configure: Check for various ways of getting info on mounted
  350.     filesystems. 
  351.  
  352. Thu Aug 22 10:53:23 1991  David J. MacKenzie  (djm at apple-gunkies)
  353.  
  354.     * src/Makefile.in: Workaround #10006 for C compilers that are
  355.     too dumb to allow -c and -o together.  Copy the source files.
  356.     * system.h: Moved from src to lib to avoid having to add yet
  357.     more -I options to CFLAGS.
  358.  
  359.     * du.c, ls.c: If POSIX_ME_HARDER is set in environment, use
  360.     512-byte blocks by default.
  361.  
  362. Wed Aug 21 13:03:14 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  363.  
  364.     * Version 3.0.
  365.  
  366.     * du.c, ls.c: Make 1K blocks the default size, and -k a no-op.
  367.     Down with dumb standards!
  368.  
  369.     * system.h, backupfile.c, savedir.c [VOID_CLOSEDIR]: Fake a
  370.     return value for closedir, which returns void on some systems,
  371.     like Sequents.
  372.     * configure: Check sys/dir.h for 'void closedir'.
  373.  
  374. Tue Aug 20 22:22:47 1991  Jim Meyering (meyering at nutrimat)
  375.  
  376.     * mvdir.c (main):  Clean up loop to stat component
  377.     directories -- as in makepath and pathchk.
  378.  
  379. Tue Aug 20 22:10:47 1991  Jim Meyering (meyering at nutrimat)
  380.  
  381.     * dirname.c (dirname):  Allocate exact amount of space
  382.     needed for result.
  383.  
  384. Tue Aug 20 02:13:40 1991  David J. MacKenzie  (djm at apple-gunkies)
  385.  
  386.     * savedir.c (savedir): Try to open directory before allocating
  387.     buffer.  From Jim Meyering.
  388.  
  389. Mon Aug 19 01:14:13 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  390.  
  391.     * Many files: indent '#pragma alloca' so non-ANSI compilers
  392.     don't choke on it.
  393.  
  394.     * backupfile.c (max_backup_version): Check closedir return
  395.     value (though it might not do any good).
  396.  
  397. Tue Aug  6 20:50:56 1991  David J. MacKenzie  (djm at wheat-chex)
  398.  
  399.     * configure, Makefile.in's: Support +srcdir option, using VPATH.
  400.     Don't check for bison, just try it and if it fails use yacc.
  401.     Create config.status.  Fix up clean targets.
  402.  
  403.     * posixtm.y (posixtm): New function.
  404.  
  405.     Most of the following is from Paul Eggert:
  406.     * savedir.c (savedir), ls.c (print_dir), rm.c
  407.     (clear_directory): Check closedir return for errors.
  408.     * dd.c (main): Check for stdin or stdout being closed.
  409.     * dd.c (quit), install.c (copy_file): Check for close errors.
  410.     * mv.c (copy): Was missing a close.
  411.  
  412. Sat Aug  3 02:05:51 1991  David J. MacKenzie  (djm at apple-gunkies)
  413.  
  414.     * ln.c: Declare link() unconditionally (SCO UNIX needs it).
  415.  
  416. Tue Jul 30 00:23:19 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  417.  
  418.     * configure: NEED_TZSET has become FTIME_MISSING.
  419.  
  420.     * configure: Define uid_t and gid_t if sys/types.h doesn't.
  421.  
  422. Sat Jul 27 00:55:16 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  423.  
  424.     * configure: Only compile fileblocks.c if st_blocks is missing.
  425.  
  426.     * cp.c (copy): Make directories with initial mode of source
  427.     permissions minus umask, plus 0700.  For POSIX and John Gilmore.
  428.  
  429.     * system.h: Include errno.h and, if STDC_HEADERS, stdlib.h.
  430.     * All programs: Remove includes of those files.
  431.  
  432.     * ftruncate.c: New file.
  433.     * configure: Use it if needed.
  434.  
  435. Wed Jul 24 02:09:45 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  436.  
  437.     * ls.c (get_name_link), cp.c (copy) [_AIX]: Allocate extra
  438.     space for the buffer, since st_size is wrong.
  439.  
  440.     * system.h: Don't declare alloca for AIX.
  441.     * makepath.c, posixtm.y, cp.c, du.c, ln.c, ls.c, mv.c:
  442.     Declare alloca first (AIX needs it).
  443.  
  444.     * cp.c, dd.c, touch.c: Use SEEK_ instead of L_.
  445.     * system.h: Define SEEK_ if not defined.
  446.  
  447. Tue Jul 23 15:02:20 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  448.  
  449.     * eaccess.c: GID_T is int if ultrix as well as if sun.
  450.  
  451. Mon Jul 22 11:39:31 1991  David J. MacKenzie  (djm at bleen)
  452.  
  453.     * install.c: Use uid_t and gid_t.
  454.  
  455.     * eaccess.c: Support POSIX method of getting multiple groups.
  456.  
  457.     * xmalloc.c (xmalloc, xrealloc): Exit with value 2 on error,
  458.     not 1, so cmp can use it.
  459.  
  460. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  461.  
  462.     * Move cat cmp cut expand head paste split tac tail unexpand
  463.     to textutils.
  464.  
  465.     * system.h [MKFIFO_MISSING]: Define mkfifo macro.
  466.     * cp.c, mkfifo.c: Don't define it.
  467.  
  468.     * mknod.c, gmknod.1: New files.
  469.  
  470. Fri Jul 19 13:43:01 1991  David J. MacKenzie  (djm at apple-gunkies)
  471.  
  472.     * version.c: New file.
  473.     * All C programs: Link with it, to get version number in the
  474.     binary where at least `strings -' and GNU grep can find it.
  475.  
  476. Mon Jul 15 13:46:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  477.  
  478.     * configure: Also look in sys/signal.h for signal decl.
  479.  
  480. Sun Jul 14 22:43:57 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  481.  
  482.     * Rename touchtm.y back to posixtm.y, as the date command will
  483.     use it too.
  484.  
  485. Mon Jul  8 22:56:36 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  486.  
  487.     * Replace lib/Makefile with lib/Makefile.in.
  488.     * configure: For some library functions that might be missing,
  489.     conditionally add the .o files to lib/Makefile instead of
  490.     defining func_MISSING.
  491.     * lib/mkdir.c: Renamed from lib/mkrmdir.c.
  492.  
  493. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  494.  
  495.     * xstrdup.c [STDC_HEADERS]: Include string.h.
  496.  
  497.     * stripslash.h: Include string header file.
  498.  
  499.     * configure: Add to DEFS if Minix.
  500.  
  501.     * system.h [_POSIX_SOURCE]: Make ST_BLKSIZE 1024 instead of
  502.     512, for better performance.
  503.  
  504.     * system.h, configure: If sys/mkdev.h exists, use it instead
  505.     of sys/sysmacros.h.
  506.  
  507.     * configure: echo messages to stdout, not stderr.
  508.     Use test programs to see if alloca needs -lPW and if chars are
  509.     unsigned. 
  510.  
  511. Tue Jul  2 03:16:32 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  512.  
  513.     * chown.c, chgrp.c [!POSIX]: Declare pwd.h and grp.h functions.
  514.  
  515. Sat Jun 29 16:46:12 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  516.  
  517.     * cp.h: Don't declare `open', to avoid conflict with varargs
  518.     prototypes.
  519.  
  520.     * chown.c, chgrp.c: Include sys/types.h before, not after,
  521.     pwd.h and grp.h, to get uid_t and gid_t if necessary.
  522.  
  523. Fri Jun 28 01:12:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  524.  
  525.     * ls.c: Use time_t instead of long, where appropriate.
  526.  
  527. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  528.  
  529.     * touchtm.y: Renamed from posixtime.y for SysV systems with Bison.
  530.  
  531.     * configure: No longer need to pass bison the -y option.
  532.     Now lib/Makefile should allow a parallel make with bison.
  533.  
  534.     * cp.c (copy_reg), cat.c (main),
  535.     touch.c (touch, utime_now), mv.c (copy): Check close return
  536.     value for delayed error report due to NFS.
  537.  
  538. Thu Jun 20 01:33:06 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  539.  
  540.     * configure: Include $DEFS when compiling test programs.
  541.  
  542.     * configure: Use test programs instead of grep to check for
  543.     USG, POSIX, and ANSI C headers, in case symbols are defined in
  544.     header files included by the standard ones.  Check for BSD
  545.     memory functions (bcopy et al.) as well as string functions.
  546.     Add notice to top of generated Makefile saying that it's
  547.     automatically generated.
  548.  
  549. Thu Jun 13 00:50:18 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  550.  
  551.     * Version 2.1.
  552.  
  553.     * configure: If rename is missing, define MVDIR.
  554.     Use , instead of / as sed substitution separator so variables'
  555.     values can contain slashes.
  556.  
  557.     * du.c (main): Use alloca to allocate `wd' instead of making
  558.     it an auto array, since PATH_MAX might be a call to pathconf.
  559.  
  560. Wed Jun 12 19:56:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  561.  
  562.     * cp-aux.c (usage), install.c (usage), ln.c (usage), mv.c
  563.     (usage): Combine the option lists for the multiple usage forms.
  564.  
  565. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  566.  
  567.     * idcache.c: pwd.h and grp.h might need sys/types.h.
  568.  
  569.     * configure: Create Makefile from Makefile.in instead of
  570.     makefile from makefile.skel, to more closely follow the new
  571.     GNU coding standards.
  572.  
  573.     * ls.c (file_interesting): Use POSIX.2 fnmatch instead of glob_match.
  574.  
  575.     * configure: If $RANDOM is implemented (ksh, bash or zsh), use
  576.     the `type' builtin to determine if gcc, bison, ranlib are
  577.     available.  ksh writes "fubar: command not found" to stderr,
  578.     foiling the test -n "`command 2>&1`" method.
  579.     Remove makefile on signal.
  580.  
  581.     * system.h: Include sys/param.h if not _POSIX_SOURCE instead
  582.     of if not POSIX, to get DEV_BSIZE.
  583.  
  584.     * makepath.c, posixtime.y, system.h: Add _AIX case to alloca decl.
  585.  
  586. Sun Jun  9 01:26:27 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  587.  
  588.     * Version 2.0.
  589.  
  590.     * basename.c, dirname.c: Use str[r]chr and string.h if
  591.     STDC_HEADERS as well as if USG.
  592.  
  593.     * touch.c (utime_now): Created from code in touch ().
  594.  
  595. Sat Jun  8 11:02:32 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  596.  
  597.     * backupfile.c: Use POSIX instead of _POSIX_SOURCE to
  598.     determine whether to check whether readdir returned a valid
  599.     entry. 
  600.  
  601. Fri Jun  7 21:44:51 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  602.  
  603.     * fileblocks.c (st_blocks), system.h (ST_NBLOCKS): Always
  604.     return number of 512 byte blocks, not DEV_BSIZE blocks.
  605.     (convert_blocks): Always expect 512-byte blocks.
  606.  
  607. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  608.  
  609.     * system.h [POSIX]: If PATH_MAX not defined, use pathconf.
  610.     Remove NAME_MAX stuff; not used.
  611.  
  612.     * system.h: Make #include <strings.h> depend on not (USG or
  613.     STDC_HEADERS) instead of not (USG or POSIX).
  614.  
  615.     * configure: New shell script to aid compilation.
  616.  
  617. Mon Jun  3 16:42:41 1991  David J. MacKenzie  (djm at wheat-chex)
  618.  
  619.     * cp.h: Remove some decls of functions returning int that
  620.     conflict with prototypes on HPUX.
  621.  
  622.     * cp.c (make_path, re_protect): New functions from Jim
  623.     Meyering.  Changes to other functions as well, to add +path,
  624.     +link, +symbolic-link options.
  625.  
  626. Sun Jun  2 15:45:24 1991  David J. MacKenzie  (djm at wheat-chex)
  627.  
  628.     * most files: use GPL version 2.
  629.  
  630. Sat Jun  1 20:17:35 1991  David J. MacKenzie  (djm at wheat-chex)
  631.  
  632.     * rm.c, backupfile.c: If _POSIX_SOURCE, don't refer to d_ino.
  633.  
  634. Sun May 19 18:42:09 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  635.  
  636.     * touch.c: Renamed getdate to get_date to avoid SVR4 conflict.
  637.  
  638. Thu May 16 23:12:01 1991  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  639.  
  640.     * cp.c, mv.c, ln.c: Use alloca and strcpy directly instead of
  641.     in a macro for generating backup filename.  The latter
  642.     sometimes coredumps for some reason.
  643.  
  644. Sat Apr 20 00:03:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  645.  
  646.     * dd.c: Add conv=notrunc and truncate output file by default,
  647.     for POSIX.
  648.  
  649.     * rm.c (rm): Refuse to remove path/. and path/.., as well as `.'
  650.     and `..', for POSIX.
  651.  
  652.     * chown.c: Allow `:' as well as `.' to separate group from
  653.     user, for POSIX.2 draft 11.
  654.  
  655.     * Many programs: Don't bother to get the long-option index
  656.     value from getopt_long, since we ignore it.
  657.  
  658.     * Many programs: Separate long-option option names from their
  659.     args with `=' instead of ` ' in usage messages.
  660.  
  661.     * touch.c (touch): Don't refuse to touch non-regular files.
  662.  
  663. Wed Apr 10 12:19:30 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  664.  
  665.     * cp.c, cp-aux.c: Add -a +archive option, an easier to
  666.     remember synonym for -dpR.
  667.  
  668. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  669.  
  670.     * mv.c (copy): Try to preserve file ownership in
  671.     cross-filesystem copies.
  672.  
  673.     * backupfile.c, rm.c: Go back to using d_ino instead of
  674.     d_fileno.  POSIX.1 specifies neither, and d_ino is more
  675.     common, perhaps ubiquitous.
  676.  
  677.     * chown.c (describe_change): Don't print the group name if it
  678.     didn't change (thus is a null pointer).
  679.     (main): Initialize group name to null.
  680.  
  681. Mon Feb 25 11:44:14 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  682.  
  683.     * dd.c (copy): Only seek if not seeking to start of file, so
  684.     "dd >> foo" works with Minix shell that doesn't open foo in
  685.     append mode. 
  686.  
  687. Thu Feb 21 11:59:39 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  688.  
  689.     * ln.c (do_link), mv.c (do_move), cp.c (copy): Store backup
  690.     filename using alloca so we don't have to free it every place
  691.     we return.  From Jim Meyering.
  692.  
  693. Thu Feb 14 00:41:43 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  694.  
  695.     * cp.c (copy_reg): Only make holes when copying a regular file
  696.     onto a regular file.
  697.  
  698. Fri Jan 18 06:31:59 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  699.  
  700.     * ls.c: Move defn. of S_IEXEC to after header files are included.
  701.     * cp.h: Always declare stat and lstat.
  702.  
  703. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  704.  
  705.     * cp.h: Only declare some system calls if not POSIX.
  706.  
  707.     * eaccess.c, idcache.c, dd.c, install.c, ln.c, system.h:
  708.     Change _POSIX_SOURCE to POSIX.
  709.  
  710.     * fileblocks.c, system.h: Change STBLOCKS_MISSING to
  711.     ST_BLOCKS_MISSING (was already that way in cp.c).
  712.  
  713. Fri Dec 28 18:40:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  714.  
  715.     * chmod.c, chown.c, chgrp.c, du.c: Rename -d option to -L for
  716.     similarity to ls and cpio. 
  717.  
  718. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  719.  
  720.     * rm.c (clear_directory): Keep looking for files to remove
  721.     until we don't find any, so that any .nfs* files created by
  722.     removing other files are also removed, eventually.
  723.  
  724.     * install.c (main): Strip trailing slashes on all args.
  725.  
  726.     * mv.c (copy): Open target file with mode 0600, not 0777.
  727.     [FCHMOD_MISSING]: Perform chmod after closing files, not
  728.     before, for MS-DOS.
  729.  
  730.     * cp.c (do_copy): Don't append `..' to target dir name.
  731.  
  732.     * du.c (main, count_entry, usage): Add -D +dereference-args
  733.     and -d +dereference options.
  734.  
  735. Wed Dec 26 03:39:18 1990  David J. MacKenzie  (djm at egypt)
  736.  
  737.     * dirname.c, xstrdup.c: Get decls from standard files, if available.
  738.  
  739. Thu Dec 20 23:10:22 1990  David J. MacKenzie  (djm at egypt)
  740.  
  741.     * makepath.c: New file, adapted from code in mkdir.c,
  742.     install.c, and cpio util.c by Jim Meyering.
  743.     * mkdir.c, install.c: Use make_path.
  744.  
  745. Sun Dec 16 00:56:54 1990  David J. MacKenzie  (djm at egypt)
  746.  
  747.     * chown.c, chgrp.c: New files.
  748.  
  749. Sat Dec 15 20:42:32 1990  David J. MacKenzie  (djm at egypt)
  750.  
  751.     * cp.h: Declare POSIX functions always -- _POSIX_SOURCE
  752.     doesn't imply STDC declarations.
  753.  
  754.     * system.h: Define S_ISTYPE macros not defined by sys/stat.h.
  755.  
  756.     * Many files: Use S_ISTYPE macros.
  757.  
  758.     * backupfile.c, rm.c: Use name d_fileno for member of struct
  759.     dirent instead of d_ino, for POSIX.
  760.  
  761. Wed Dec 12 23:38:22 1990  David J. MacKenzie  (djm at egypt)
  762.  
  763.     * ls.c: Declare time() as time_t instead of long, to prevent
  764.     conflict with standard header files.
  765.  
  766.     * cp.c (copy_reg): Instead of using NO_SPARSE_FILES, use
  767.     st_blocks to determine whether the original file contains any
  768.     sparse blocks, and only create them if so.  On systems without
  769.     st_blocks, to be safe, never create sparse blocks.
  770.  
  771. Thu Nov  8 12:16:27 1990  David J. MacKenzie  (djm at apple-gunkies)
  772.  
  773.     * idcache.c: If _POSIX_SOURCE not defined, declare getpw and
  774.     getgr functions (not an optimal solution, but I hate to add
  775.     yet another configuration macro).
  776.  
  777.     * Makefile: Define AR and RANLIB and pass to child makes.
  778.     lib/Makefile: Use them.
  779.  
  780. Tue Nov  6 23:18:06 1990  David J. MacKenzie  (djm at mole.ai.mit.edu)
  781.  
  782.     * idcache.c: New file from code in ls.c.
  783.  
  784. Fri Nov  2 14:34:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  785.  
  786.     * Move files into src and lib directories, split out library
  787.     functions into separate files in lib, and rewrite Makefiles.
  788.  
  789. Mon Oct 29 01:20:46 1990  David J. MacKenzie  (djm at apple-gunkies)
  790.  
  791.     * mv.c (do_move), rm.c (remove_file, remove_dir): If stdin is
  792.     a tty and file is unwritable, prompt before overwriting.
  793.  
  794.     * cp.c (copy_reg): Only make sparse files if
  795.     NO_SPARSE_FILES is undefined, to accomodate dumb kernels.
  796.  
  797.     * du.c (count_entry): Remove misinformed HPUX kludge that
  798.     doesn't really fix the problem.
  799.  
  800.     * rm.c (rm): Check for textual equality with '.' and '..', not
  801.     dev/inode equality.
  802.  
  803. Sat Oct 27 23:38:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  804.  
  805.     * rm.c (check_stack): If not interactive, don't prompt when
  806.     corruption is found, just quit.
  807.     (remove_file, remove_dir): Delete leading spaces in verbose
  808.     output. 
  809.  
  810.     * cp.c (copy), rm.c (remove_dir): If we think the dest. file
  811.     is unwritable, warn the user in the interactive prompt instead
  812.     of automatically skipping the file.  Because of race
  813.     conditions and other protection mechanisms we might not know
  814.     about, and POSIX.
  815.  
  816. Mon Oct  8 18:51:25 1990  David J. MacKenzie  (djm at apple-gunkies)
  817.  
  818.     * du.c (main, usage, count_entry): Add +separate-dirs -S option.
  819.  
  820.     * dd.c (main): Don't trap SIGINT if it was being ignored.
  821.  
  822. Tue Sep 25 16:40:43 1990  David J. MacKenzie  (djm at apple-gunkies)
  823.  
  824.     * install.c (copy_file, install_file_in_file): Change
  825.     attributes after stripping, to guard against strip programs
  826.     that clear setuid bits, etc.
  827.  
  828. Fri Sep 21 22:31:43 1990  David J. MacKenzie  (djm at apple-gunkies)
  829.  
  830.     * cp.c (copy_reg): Put back ftruncate way of making holes
  831.     because the other way can't make a hole at the end of a file.
  832.  
  833. Tue Sep 18 03:47:45 1990  David J. MacKenzie  (djm at apple-gunkies)
  834.  
  835.     * install.c (change_attributes): Don't ignore EPERM for chown,
  836.     since the default uid is now the current uid.
  837.  
  838. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  839.  
  840.     * Version 1.4.
  841.  
  842.     * cp.h: Declare free returning void, not int, so it
  843.     doesn't bomb on Xenix.
  844.  
  845. Fri Sep  7 04:35:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  846.  
  847.     * system.h, backupfile.c, savedir.c [DIRENT]: if direct is
  848.     defined (as on Ultrix 4.0), undefine it before redefining it.
  849.  
  850. Tue Sep  4 03:10:24 1990  David J. MacKenzie  (djm at apple-gunkies)
  851.  
  852.     * dd.c (apply_translations, translate_charset): Code moved
  853.     from parse_conversion.
  854.     (apply_translations): Convert from EBCDIC to ASCII before
  855.     converting case.
  856.  
  857.     * mvdir.c (fullpath): Return a value.
  858.  
  859.     * dd.c (copy): Increment count of truncated records once
  860.     per record, not once per character that overflows.
  861.  
  862. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  863.  
  864.     * dd.c (swab_array): Function removed.
  865.     (copy): Rewrite conv=swab to work when odd number of bytes
  866.     are read.
  867.     (scanargs): Die if invalid numeric value is given.
  868.     (parse_integer): Return -1 if invalid arg.
  869.     (bit_count): Faster version from Jim Meyering.
  870.  
  871.     * cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
  872.  
  873. Thu Aug 30 00:17:02 1990  David J. MacKenzie  (djm at apple-gunkies)
  874.  
  875.     * mvdir.c (main): Make sure `from' is not a parent of any part
  876.     of `to', not just the explicitly given part.
  877.     (fullpath): New function.
  878.  
  879. Wed Aug 29 19:50:05 1990  David J. MacKenzie  (djm at apple-gunkies)
  880.  
  881.     * mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
  882.     * dirlib.c: Caller changed.
  883.  
  884. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  885.  
  886.     * touch.c (main): Don't interpret first non-option arg as a
  887.     time if `--' is given (POSIX-required kludge).
  888.  
  889.     * touch.c: Add long-named options.
  890.  
  891.     * Many files: Include <getopt.h> instead of "getopt.h" since
  892.     getopt.h will be in the GNU /usr/include.
  893.  
  894.     * install.c: Declare some functions.
  895.  
  896.     * touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
  897.  
  898.     * posixtime.y: Move year from before time to after it (but
  899.     before the seconds), for 1003.2 draft 10.
  900.  
  901. Mon Aug 27 03:25:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  902.  
  903.     * touch.c (main): If no time is given and first arg is a valid
  904.     timespec, use it as one.
  905.  
  906. Sat Aug 25 01:36:16 1990  David J. MacKenzie  (djm at apple-gunkies)
  907.  
  908.     * posixtime.y: Enclose YYABORT in braces in case some yacc's
  909.     need it.
  910.  
  911.     * touch.c: Remove -i option.  Change some error messages.
  912.     (readname): Function removed.
  913.  
  914. Thu Aug 23 12:56:33 1990  David J. MacKenzie  (djm at apple-gunkies)
  915.  
  916.     * cp.c (copy): Only restore dir mode if it was changed.
  917.  
  918. Wed Aug 22 01:45:54 1990  David J. MacKenzie  (djm at apple-gunkies)
  919.  
  920.     * cp.c (copy): Don't only backup files when -f is given.
  921.  
  922.     * ls.c: Add -X +sort=extension option.  Rename
  923.     +kilobyte-file-size to +kilobytes.
  924.  
  925.     * du.c: Rename -f option to -x, for POSIX.  Rename
  926.     +kilobyte-file-size to +kilobytes.  Add -b, +bytes option for
  927.     POSIX. 
  928.  
  929.     * cp-aux.c (usage): Change -o to -x.
  930.     (stpcpy): Renamed from str_cpy.  Change callers in cp.c.
  931.  
  932.     * cp.c: New variable, `flag_copy_as_regular'.
  933.     (main): For -R, unset `flag_copy_as_regular'.
  934.     Rename -o to -x for consistency with du.
  935.     (copy): Only unlink destination files when -f is given.
  936.     Only prompt when -i given and copying as a regular file.
  937.     Move check for previous link after other checks, reducing
  938.     duplicate code.
  939.     Create directories with mode 0700 initially, for POSIX.
  940.  
  941. Mon Aug 20 03:29:08 1990  David J. MacKenzie  (djm at apple-gunkies)
  942.  
  943.     * dd.c (copy): Swap input bytes instead of output bytes.
  944.     (swab_array): New function.
  945.  
  946.     * dd.c (copy): If sync and noerror, zero the buffer before the
  947.     read instead of after so that any data read before an error
  948.     occurred are preserved.
  949.     On read error, print stats and seek past the bad block if noerror.
  950.     noerror doesn't affect write errors, for POSIX.
  951.     (scanargs): Use two buffers if no buffer sizes given.
  952.     Do not block or unblock if cbs not given.
  953.     (print_stats): New function.
  954.     (quit): Call it.
  955.  
  956. Mon Aug 13 23:30:03 1990  David J. MacKenzie  (djm at apple-gunkies)
  957.  
  958.     * cp.c (copy): If dest. exists and is unwritable, skip the file.
  959.  
  960.     * rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
  961.     for POSIX.
  962.  
  963.     * rm.c (remove_file): Only prompt if -i is given.
  964.     (main, usage): Remove -o +override-mode option, obsolete if
  965.     POSIX accepts our objection about prompting.
  966.  
  967.     * mv.c (do_move): Only prompt if -i is given.
  968.  
  969.     * ln.c (do_link): If dest. file exists and -i and -f not
  970.     given, skip the file.
  971.  
  972. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  973.  
  974.     * dd.c (main): If seek= given, don't truncate output file.
  975.     (copy): Use `read' to skip output blocks if not regular file.
  976.     Sync with NUL instead of SPC.
  977.  
  978. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  979.  
  980.     * rm.c: Rename `ignore_errors' to `ignore_missing_files', and
  981.     have it only suppress messages about nonexisting files.
  982.     (main): Get dev and ino of `.' and `..'.
  983.     (rm): If file is the same as `.' or `..', return with error.
  984.     (remove_file): Remove the file rather than skipping it if
  985.     unwritable, no -i, and stdin not tty.
  986.     (remove_dir): Return an error if directory is nonwritable,
  987.     rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
  988.  
  989.     * chmod.c (main): Use fixed error checking to make sure that
  990.     options aren't mixed together in the same args as mode specifiers.
  991.  
  992. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  993.  
  994.     * chmod.c (main): Use umask for '-' op.
  995.  
  996. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  997.  
  998.     * mkfifo.c: Remove -p +path option, no longer specified by POSIX.
  999.  
  1000. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1001.  
  1002.     * mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile to
  1003.     respect the umask for certain operations, since the umask is 0 anyway.
  1004.  
  1005.     * install.c (get_ids): Use getuid and getgid to get defaults,
  1006.     instead of -1.
  1007.  
  1008. Fri Jul 27 14:32:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  1009.  
  1010.     * backupfile.c (dirname): Always replace frontmost slash with a null.
  1011.  
  1012. Thu Jul 26 00:20:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  1013.  
  1014.     * cp.h: Declare umask as unsigned short.
  1015.  
  1016.     * eaccess.c: Make uid and gid unsigned short, and group array unsigned.
  1017.  
  1018. Wed Jul 25 18:38:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1019.  
  1020.     * rm.c (remove_file, remove_dir): Print verbose message right
  1021.     before actually trying to remove the file, after the prompting.
  1022.  
  1023.     * ls.c (getuser, getgroup): Make uid and gid unsigned short, not int.
  1024.  
  1025. Tue Jul 24 03:39:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1026.  
  1027.     * cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
  1028.     print the file names just before actually attempting the
  1029.     copy/link/move, to produce a list of the files that they
  1030.     actually try to copy/link/move, omitting skipped files.
  1031.     Remove leading spaces from +verbose output.
  1032.  
  1033. Mon Jul 23 16:57:44 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1034.  
  1035.     * cp.c (copy): Make +update operate silently, like +one-file-system. 
  1036.  
  1037.     * ln.c: Add -F as synonym for -d, for SunOS compatibility.
  1038.  
  1039. Sun Jul 15 23:23:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1040.  
  1041.     * cp.c (copy): Go back to using xstat on dest.
  1042.  
  1043. Wed Jul 11 12:10:33 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1044.  
  1045.     * cp.c (copy): Make directories with desired mode plus u+wx so
  1046.     if the copy is interrupted, the dir is closer to the desired mode.
  1047.     Don't backup directories.
  1048.  
  1049. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  1050.  
  1051.     * rm.c (main, usage): Add new option -d, +directory.
  1052.     (rm): If -d given, use remove_file instead of remove_dir for
  1053.     directories. 
  1054.     (remove_file): If directory, print "remove directory `foo'?"
  1055.     for interactive instead of "remove `foo'?".
  1056.  
  1057.     * ln.c (main): If -s given, print warning message if symlinks
  1058.     are not available.
  1059.     * mkfifo.c (main): If fifo's are not available, print message
  1060.     and exit.
  1061.  
  1062. Fri Jul  6 02:02:49 1990  David J. MacKenzie  (djm at apple-gunkies)
  1063.  
  1064.     * install.c (main): Use the current user and group ID for the
  1065.     default owner and group.
  1066.  
  1067.     * mv.c (main): New option -u, +update.
  1068.     (do_move): Don't move nondirectories if -u and there is an existing 
  1069.     destination that has the same or newer mtime.
  1070.     (usage): Document -u, +update.
  1071.  
  1072.     * cp.c (main): New option -u, +update.
  1073.     (copy): Don't copy nondirectories if -u and there is an existing 
  1074.     destination that has the same or newer mtime.
  1075.     * cp-aux.c (usage): Document -u ,+update.
  1076.  
  1077. Thu Jul  5 10:04:12 1990  David J. MacKenzie  (djm at apple-gunkies)
  1078.  
  1079.     * ln.c (do_link): Don't check whether OLD exists before trying
  1080.     to make link.
  1081.  
  1082. Tue Jul  3 01:51:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  1083.  
  1084.     * ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
  1085.  
  1086.     * chmod.c (main): Don't check whether multiple mode arguments
  1087.     are given, because optind has a different value depending on
  1088.     whether or not the option is the last character in the
  1089.     ARGV-element.
  1090.  
  1091. Sat Jun 30 12:32:51 1990  David J. MacKenzie  (djm at apple-gunkies)
  1092.  
  1093.     * cp.c (copy): Use lstat on dest. file, not *xstat.
  1094.  
  1095. Mon Jun 25 18:07:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1096.  
  1097.     * ls.c (print_long_format): Truncate user and group names to 8
  1098.     chars to preserve column alignment.
  1099.     (length_of_file_name_and_frills): Don't assume type indicator
  1100.     will be printed for unknown file types that some os's have.
  1101.  
  1102.     * install.c: Declare getgrnam for systems where grp.h doesn't.
  1103.  
  1104. Sat Jun 23 00:06:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1105.  
  1106.     * Version 1.3.
  1107.  
  1108.     * du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
  1109.     according to the number of blocks reported is twice or more than
  1110.     the size of the file according to the number of bytes
  1111.     reported, halve the number of blocks.
  1112.  
  1113. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1114.  
  1115.     * cp.c (copy_dir): Initialize 'ret' to 0.
  1116.  
  1117.     * cp.c (main), ln.c (main), mv.c (main), rm.c (main):
  1118.     Make -i override -f and -o, to be conservative about
  1119.     removing peoples' files.
  1120.  
  1121.     * mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
  1122.     "" or "/".
  1123.  
  1124.     * rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
  1125.     slashes at the end of an arg from main to
  1126.     strip_trailing_slashes. 
  1127.  
  1128.     * install.c (strip): Print error message if the `strip'
  1129.     program can't be run.
  1130.  
  1131.     * system.h (convert_blocks): Macro moved from du.c and ls.c.
  1132.     Take a second parameter indicating whether to convert to
  1133.     kilobytes or 512 byte blocks.
  1134.     * ls.c, du.c: Pass second parameter to convert_blocks.
  1135.  
  1136. Thu Jun 21 01:19:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1137.  
  1138.     * ls.c (print_long_format): Use mode_string instead of filemodestring. 
  1139.  
  1140.     * ls.c (print_long_format): Compare times as longs, not ints.
  1141.     (longdiff): Macro to compare two longs efficiently if sizeof
  1142.     int == sizeof long and less efficiently but correctly if they
  1143.     are different sizes.
  1144.     (compare_ctime, etc.): Use longdiff.
  1145.  
  1146.     * ls.c (decode_switches): Make -k not imply -s, to allow the
  1147.     summary directory size printed by -l to be in 1k blocks
  1148.     without having the size of each file printed as well.
  1149.     (convert_blocks): Provide for systems with a blocksize that is
  1150.     other than 512 or 1024 bytes.
  1151.  
  1152.     * du.c (main): Exit with status 0 normally.
  1153.     (convert_blocks): Provide for systems with a blocksize that is
  1154.     other than 512 or 1024 bytes.
  1155.  
  1156. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1157.  
  1158.     * ln.c (do_link): Take out code to give an error if source and
  1159.     dest are the same file.  The dubious usefulness of the special
  1160.     case to prevent 'ln x x' from removing 'x' (ln -i can be used
  1161.     instead) is not worth preventing 'ln x y' from failing the
  1162.     second time in a row, and appears to contradict POSIX anyway.
  1163.  
  1164. Mon Jun 18 02:48:17 1990  David J. MacKenzie  (djm at apple-gunkies)
  1165.  
  1166.     * ls.c (print_file_name_and_frills):
  1167.     (length_of_file_name_and_frills, print_long_format):
  1168.     Allow 6 digits for i-number, not 5.
  1169.  
  1170. Sun Jun 17 00:09:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1171.  
  1172.     * install.c (install_dir): Don't check whether "" or the root
  1173.     directory exists (the former fails on some systems).
  1174.  
  1175.     * system.h: Make inclusion of sys/file.h conditional on USG
  1176.     and _POSIX_SOURCE, not DIRENT.
  1177.  
  1178.     * chmod.c (change_dir_mode): Use xrealloc instead of free and
  1179.     xmalloc in case malloc already left extra room.
  1180.     (xrealloc): New function.
  1181.  
  1182.     * rm.c (clear_directory): Prevent buffer overruns.
  1183.     More efficient string handling.  Don't skip rest of directory
  1184.     if continuing after finding circular inode.
  1185.     (xrealloc): New function.
  1186.  
  1187. Sat Jun 16 01:45:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1188.  
  1189.     * argmatch.c (invalid_arg): Change order in which the items
  1190.     are printed. 
  1191.  
  1192.     * ls.c: Add +tabsize (-T) option.
  1193.  
  1194. Fri Jun 15 23:40:55 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1195.  
  1196.     * dd.c (scanargs): For ibs and obs, set C_HARDWAY.
  1197.     (copy): Use different buffers only if C_HARDWAY, not if
  1198.     blocksizes are the same, to ensure constant output block sizes.
  1199.  
  1200. Wed Jun 13 23:56:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1201.  
  1202.     * savedir.c: New file from code in chmod.c, modified to
  1203.     prevent buffer overruns.
  1204.     * chmod.c (change_dir_mode), cp.c (copy_dir), du.c
  1205.     (count_entry): Use savedir.
  1206.  
  1207. Thu Jun  7 03:52:02 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1208.  
  1209.     * system.h (ST_BLKSIZE) [!STBLOCKS_MISSING]: If st_blksize is
  1210.     0 (as on pipe reads on some systems), use BSIZE instead.
  1211.     Define BSIZE as DEV_BSIZE if necessary.
  1212.  
  1213.     * Makefile, system.h, fileblocks.c: Use STBLOCKS_MISSING to
  1214.     control whether st_blksize and st_blocks are used.
  1215.     * Makefile, system.h, backupfile.c: Use DIRENT to control
  1216.     whether <dirent.h> is used.
  1217.  
  1218. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  1219.  
  1220.     * fileblocks.c: New file.
  1221.     * du.c (blocks_to_kb): Replace with convert_blocks macro.
  1222.     (main): Recognize new -k option.
  1223.     (usage): Document it.
  1224.     * ls.c (nblocks): Replace with convert_blocks macro.
  1225.     * system.h (ST_BLKSIZE) [USG]: Use BSIZE from sys/param.h instead of
  1226.     having the user define BLKSIZE.
  1227.     (ST_NBLOCKS) [USG]: Use st_blocks from fileblocks.c.
  1228.  
  1229. Wed May 23 00:40:39 1990  David J. MacKenzie  (djm at apple-gunkies)
  1230.  
  1231.     * argmatch.c: New file, taken from ls.c.
  1232.     * getversion.c (get_version): Use argmatch, to allow
  1233.     abbreviations.  Default backup type is existing_numbered.
  1234.     * mv.c (main), ln.c (main), cp.c (main): Only make backups if
  1235.     -b (+backup) is given.  If envar SIMPLE_BACKUP_SUFFIX is set,
  1236.     use it as a default instead of `~'.
  1237.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Update messages.
  1238.  
  1239. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1240.  
  1241.     * install.c: New file (from ../bin-src).
  1242.  
  1243.     * dd.c (copy): Don't count completely failed writes as partial
  1244.     writes.  Make buffers unsigned.  If blocking or unblocking,
  1245.     pad final partial buffer if necessary.
  1246.  
  1247.     * getversion.c: New file.
  1248.     * mv.c (main), cp.c (main), ln.c (main): Control backup types
  1249.     with getenv ("VERSION_CONTROL") and +version-control or -V.
  1250.  
  1251.     * cp.c (yesno), mv.c (yesno), ln.c (yesno): Stop reading if
  1252.     EOF reached as well as at newline.
  1253.  
  1254.     * backupfile.[ch]: Rename var `version_control' to `backup_type'.
  1255.  
  1256. Sat May 19 23:38:46 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1257.  
  1258.     * touch.c: Change some error messages.  Include "getopt.h".
  1259.  
  1260. Sat May 19 00:16:50 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1261.  
  1262.     * mv.c (main), ln.c (main), cp.c (main): Revise
  1263.     backup-creation options.
  1264.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Revise messages.
  1265.  
  1266.     * chmod.c (describe_change): Use mode_string instead of
  1267.     filemodestring. 
  1268.  
  1269.     * cp.c (main): Recognize new options for making backups.
  1270.     * cp.c (copy): Make backups if requested.  Fix typo.
  1271.     * cp-aux.c (usage): Update message.
  1272.  
  1273.     * mv.c, cp.c: Remove code to conditionally use utimes instead
  1274.     of utime, since the extra resolution of utimes was not being
  1275.     used, the emulation overhead is probably insignificant,
  1276.     and utime is a standard function.
  1277.  
  1278.     * cp-hash.c: Fix up comments.
  1279.  
  1280. Fri May 18 23:06:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1281.  
  1282.     * mv.c (do_move): Only make backup if dest file exists.
  1283.     Don't continue moving file if dest can't be backed up.
  1284.     * ln.c (do_link): Don't try to unlink dest if it was backed up.
  1285.     Don't continue moving file if dest can't be backed up.
  1286.  
  1287.     * system.h: Make SIGTYPE default to void if not defined.
  1288.  
  1289.     * modechange.[ch]: Rename struct and external functions to start
  1290.     with 'mode_'.
  1291.     * modechange.c (oatoi): Make static.
  1292.     (mode_compile): Take an additional arg indicating which
  1293.     symbolic operators should be affected by the umask.
  1294.     * modechange.h: Add defines for mode_compile arg mask.
  1295.     If __STDC__, use prototypes.
  1296.     * chmod.c, mkdir.c, mkfifo.c, create.c: Account for above changes.
  1297.  
  1298. Tue May 15 16:17:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1299.  
  1300.     * dd.c (copy): Quit with nonzero status if final write fails.
  1301.  
  1302. Mon May 14 14:34:10 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1303.  
  1304.     * dd.c: Make translation tables unsigned.
  1305.     (main): Give `input_file' and `output_file' nonzero values for
  1306.     stdin and stdout. 
  1307.     (parse_conversion): Set new global vars 'space_character' and
  1308.     'newline_character' to correct values when translating to EBCDIC
  1309.     (either flavor).
  1310.     (copy): Use 'space_character' and 'newline_character' instead
  1311.     of hardcoded ASCII values.  Ignore attempts to seek on output pipe,
  1312.     socket, or fifo.  If possible, seek instead of reading to skip
  1313.     initial input records.  Sync with `space_character' instead of
  1314.     nulls, for POSIX.
  1315.  
  1316.     * cp.c (copy_reg): Compare lseek values as longs, not ints.
  1317.  
  1318. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1319.  
  1320.     * cp-hash (remember_created): Return error status instead of
  1321.     fatal error. 
  1322.     * cp.c (copy): Change caller.
  1323.     (do_copy, copy_reg): Return error status instead of fatal error.
  1324.  
  1325.     * Move rename emulation from mv.c to dirlib.c so other
  1326.     programs can use it.
  1327.     * mv.c, ln.c (main): Recognize new options for making backups.
  1328.     * mv.c (do_move), ln.c (do_link): Make backups if requested.
  1329.     * mv.c, ln.c (usage): Update message.
  1330.     * backupfile.c, backupfile.h: New files.
  1331.  
  1332.     * cp.h: Ifdef out decl of umask because of SunOS 4.1 (POSIX) conflict.
  1333.  
  1334.     * Define all `main' functions as returning void.
  1335.  
  1336. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1337.  
  1338.     * ln.c, mv.c, rm.c, rmdir.c, create.c, chmod.c: Change some
  1339.     error messages. 
  1340.  
  1341.     * du.c, cp-aux.c (error): Function removed.
  1342.     Change callers to use error.c version.
  1343.     * cp.c (copy, do_copy, copy_dir): Return an error status.
  1344.     * ls.c (error, fatal, perror_with_name): Functions removed.
  1345.     Change callers to use error.c.
  1346.  
  1347. Sat May  5 23:46:48 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1348.  
  1349.     * ln.c (do_link): Don't allow trying to link a file to itself,
  1350.     because the source file would be removed if they are the same
  1351.     directory entry, and also for consistency with mv and cp.
  1352.  
  1353. Fri May  4 13:42:53 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1354.  
  1355.     * cp.c (copy_reg): Only write a null to the end of the file if
  1356.     the end of the file was sparse.
  1357.  
  1358.     * ls.c (print_name_with_quoting): Make the char to print
  1359.     unsigned to prevent sign extension problems with -b.
  1360.  
  1361. Fri Apr 20 13:52:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1362.  
  1363.     * Version 1.2 released.
  1364.  
  1365. Wed Apr 18 14:36:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1366.  
  1367.     * Makefile: Use chsize for ftruncate on Xenix.
  1368.  
  1369.     * cp.c (copy): Remove broken code that attempted to
  1370.     substitute for ftruncate on systems missing it.
  1371.  
  1372. Mon Apr 16 13:58:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1373.  
  1374.     * cp-aux.c (usage): Fix mistake in message.
  1375.  
  1376.     * Version 1.1 released.
  1377.  
  1378. Sat Apr 14 17:23:11 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1379.  
  1380.     * ls.c (main): Don't remove leading path from program_name.
  1381.     (basename): Function removed.
  1382.     (length_of_file_name_and_frills): Don't add 1 for type indicator
  1383.     for block and character special files. 
  1384.  
  1385. Thu Apr 12 19:50:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1386.  
  1387.     * Makefile: Suggest using -DBLKSIZE=512 instead of 1024 for USG.
  1388.  
  1389.     * dd.c (copy): Print copying statistics when exiting because
  1390.     of a read or seek error.
  1391.     (interrupt_handler): New function.
  1392.     (main): Trap SIGINT to run interrupt_handler, for POSIX.
  1393.  
  1394. Tue Apr 10 01:09:38 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1395.  
  1396.     * chmod.c (change_file_mode): Don't change the mode of
  1397.     symbolic links.
  1398.  
  1399. Mon Apr  9 13:30:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1400.  
  1401.     * modechange.c (compile_mode): Return an error if an octal
  1402.     number argument is too large.
  1403.  
  1404. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1405.  
  1406.     * dd.c: Use `error' instead of `fatal' and `pfatal_with_name',
  1407.     for greater control of the message format.
  1408.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  1409.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  1410.     * chmod.c, create.c, ln.c, mkdir.c, mkfifo.c, mv.c, mv_dir.c,
  1411.     rm.c, rmdir.c: Remove definition of `error'.
  1412.     * error.c: New file created from code in mv.c.
  1413.     * Makefile: Link the above programs with error.o.
  1414.  
  1415.     * ln.c (do_link): Use eaccess_stat to determine writability.
  1416.     * mv.c (do_move): Ditto.
  1417.     * rm.c (remove_file): Ditto.
  1418.     (remove_dir): Use eaccess_stat to determine readability and
  1419.     searchability.  Move initial interactive query here from
  1420.     clear_directory. 
  1421.     * Makefile: Link ln, mv, and rm with eaccess.o.
  1422.  
  1423. Sat Apr  7 11:47:52 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1424.  
  1425.     * Makefile: Link cp with eaccess.o.
  1426.     * eaccess.c: New file adapted from code in cp.c and cp-aux.c.
  1427.     * cp.c (copy): Use eaccess_stat to determine writability.
  1428.     Consider a file unwritable by root if it has no permissions.
  1429.     (main): Remove groups initialization code.
  1430.     * cp-aux.c (member): Function deleted.
  1431.  
  1432.     * cp.c (copy): Temporarily change the mode of directories if
  1433.     necessary to overwrite them when running recursively.
  1434.     Consider a directory to be non-overwritable if it lacks write
  1435.     permission as well as if it lacks execute permission.
  1436.  
  1437.     * rm.c, mv.c, mv_dir.c, chmod.c, create.c, ln.c: Remove some
  1438.     irrelevant or redundant information from error messages.
  1439.  
  1440. Fri Apr  6 15:20:45 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1441.  
  1442.     * cp.c (copy): Only change mode of regular files and directories;
  1443.     others are already correct.
  1444.  
  1445. Thu Apr  5 04:31:56 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1446.  
  1447.     * dd.c: Remove the vars that are set by command line options
  1448.     from a useless struct and give them more meaningful names.
  1449.  
  1450. Mon Apr  2 02:58:34 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  1451.  
  1452.     * cp.c (main): Use NGROUPS from sys/param.h to determine
  1453.     whether BSD multiple groups are supported and how large to
  1454.     make the array.
  1455.     * Makefile: Remove references to GETGROUPS_MISSING.
  1456.  
  1457. Sun Apr  1 18:53:57 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  1458.  
  1459.     * cp.c (main): Always initialize group info.
  1460.  
  1461. Sat Mar 31 22:29:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1462.  
  1463.     * mv.c [RENAME_MISSING] (rename): To rename directories, run
  1464.     setuid root mv_dir program. 
  1465.  
  1466. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1467.  
  1468.     * touch.c: Remove POSIX_COMPAT ifdef since there is no reason
  1469.     to disable the GNU extensions.
  1470.     (main): Set new global var `program_name'.
  1471.     (error): Replace with more versatile version.
  1472.     Global: Change calls to fprintf and error to use the new error.
  1473.     (main): Initialize global variables.  Don't bother making
  1474.     temporary copy of arg to -d.  Don't ignore any files named on
  1475.     the command line if -i is given.
  1476.     (usage): Don't take an arg.  Use `program_name' instead of
  1477.     hardcoded name.
  1478.     (touch): In utime emulation for BSD, ftruncate the file to its
  1479.     original size so empty files stay empty after being touched.
  1480.  
  1481. Sun Mar 18 01:02:39 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1482.  
  1483.     * ln.c (strip_trailing_slashes): New function.
  1484.     (main, do_link): Call it.
  1485.  
  1486.     * cp-aux.c (strip_trailing_slashes): New function.
  1487.     * cp.c (do_copy): Call it.
  1488.     * cp.h: Declare it.
  1489.  
  1490.     * mv.c (strip_trailing_slashes): New function.
  1491.     (main, movefile): Call it.
  1492.  
  1493. Sat Mar 17 21:45:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1494.  
  1495.     * cp-aux.c, cp.h: Rename user_confirm_overwriting to yesno and
  1496.     don't have it print a prompt, so it can be used in several
  1497.     places. 
  1498.  
  1499.     * cp.c (do_copy): Change an error message to resemble mv's.
  1500.     Remove all trailing slashes from all non-option args.
  1501.     (main): Set new global var `stdin_not_tty'.
  1502.     (copy): Use POSIX method of handling file overwriting and
  1503.     prompting. 
  1504.  
  1505.     * dirlib.c (mkdir): Use chmod to set the directory mode after
  1506.     successful creation, so set[ug]id and sticky bits are set
  1507.     correctly. 
  1508.  
  1509. Thu Mar 15 12:33:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1510.  
  1511.     * Makefile: Add commented out definitions for SCO Xenix.
  1512.  
  1513.     * ls.c (print_type_indicator): Don't print a '*' next to
  1514.     executable block or character special files.
  1515.  
  1516.         * chmod.c (error): New function, replacing nonfatal_perror,
  1517.         memory_out, and invalid_mode.
  1518.         Global: Call error instead of the above functions.
  1519.     (change_dir_mode): Make the new size of the path twice the
  1520.     size of the name that was too long, rather than twice its old
  1521.     size. 
  1522.  
  1523.     * rm.c: Move interactive query about whether to remove a
  1524.     directory from remove_dir to clear_directory; only query for
  1525.     directories that are not empty.
  1526.  
  1527. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  1528.  
  1529.     * system.h [USG]: Define X_OK.
  1530.  
  1531.     * rm.c (main): Set new global var `stdin_not_tty'.
  1532.     (rm): Most of code moved to two new functions, remove_file and
  1533.     remove_dir.
  1534.     (remove_file): Use POSIX method of determining whether to remove
  1535.     non-directories.
  1536.     (remove_dir): Use POSIX method of determining whether to
  1537.     remove directories, almost.
  1538.     (perror_with_name): Function removed.
  1539.     (error): Simple version replaced with more powerful version.
  1540.     Global: Change calls to fprintf, perror_with_name, and old
  1541.     error to calls to new error.
  1542.  
  1543.     * ln.c (main): Set new global var `stdin_not_tty'.
  1544.     If force, turn off interactive.
  1545.     (do_link): By default, don't allow hard links to symbolic links to
  1546.     directories.  Use POSIX method of determining whether to
  1547.     overwrite destination.
  1548.     (yesno): Function renamed from confirm, and arg removed.
  1549.     (lisdir): Function removed.
  1550.  
  1551.     * mv.c (main): Set new global var `stdin_not_tty'.
  1552.     (yesno): Function renamed from yes.
  1553.     (do_move): Use POSIX method of determining whether to
  1554.     overwrite destination.
  1555.  
  1556.     * Makefile: Make executables depend on .o files, not .c files,
  1557.     to allow for parallel compilation.
  1558.  
  1559. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  1560.  
  1561.     * rm.c (main): Disallow removal of paths that have '..' as the
  1562.     final element.
  1563.     (basename): New function.
  1564.  
  1565.     * ls.c (print_type_indicator): Mark FIFOs with '|' and sockets
  1566.     with '='.
  1567.     (print_long_format): Print numbers as unsigned and add extra
  1568.     space for POSIX flag.
  1569.  
  1570.     * dd.c: Make the record counts unsigned.
  1571.     (quit): Print them as unsigned.
  1572.  
  1573.     * modechange.c (compile_mode): Only get umask value when needed.
  1574.     If users are not given or are `a', affect set?id and sticky bits.
  1575.     If memory is exhausted while allocating a new list element,
  1576.     free the old elements before returning.
  1577.  
  1578.     * Makefile (CC): Add comment noting that either fixincludes or
  1579.     -traditional needs to be used for gcc to compile ioctl calls
  1580.     correctly. 
  1581.  
  1582. Mon Mar 12 16:25:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1583.  
  1584.     * touch.c [UTIME_OF_NULL_MISSING]: Call lseek() before write().
  1585.  
  1586.     * posixtime.y [__GNUC__]: Use __builtin_alloca.
  1587.  
  1588. Fri Mar  9 10:25:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1589.  
  1590.     * chmod.c (main): Recognize "a,+-=" as valid options.
  1591.  
  1592.     * mv.c: Move the code to copy files across filesystems from
  1593.     do_move to a new function, copy, which will eventually be
  1594.     replaced with modules from cp and rm (POSIX requires mv to
  1595.     move directories recursively across filesystems).
  1596.     (do_move): Don't query about overriding a mode that prohibits
  1597.     writing if interactive.  Remove unneeded variable.
  1598.     (copy): Unlink target if copy fails partway through.
  1599.  
  1600. Thu Mar  8 10:56:16 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1601.  
  1602.     * cp.c (copy): Don't remove a destination file of a different
  1603.     type unless +force is given.
  1604.  
  1605.     * ls.c (decode_switches, usage): Add -U (for "unsorted") as an
  1606.     equivalent to +sort=none.
  1607.  
  1608. Mon Mar  5 16:31:14 1990  Torbj|rn Granlund  (tege at echnaton)
  1609.  
  1610.     * cp.c (copy): Test for temporarily modified permission mode
  1611.       after the other test, so that `-p' work for files whose mode
  1612.       needed a temporary mode change.
  1613.     * cp.c (copy): Don't waste time calling unlink if we already
  1614.       know that the destination doesn't exists.
  1615.     * cp.c (comment before do_copy): Correct.
  1616.     * cp.c (comment before copy): Describe all params.
  1617.     * cp.c (copy): Only change permission mode for regular files
  1618.       and directories.
  1619.     * cp.c (copy): Unlink the destination file if its type is
  1620.       different from the source.  If the destination is a
  1621.       directory,  error.
  1622.  
  1623. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1624.  
  1625.     * chmod.c (nonfatal_perror): Don't check for force_silent.
  1626.     (change_file_mode, change_dir_mode): If force_silent, don't
  1627.     print error messages.
  1628.  
  1629.     * mv.c (main): If force, turn off interactive.
  1630.     (do_move): Simplify check for query.  Rename `stb' to
  1631.     `to_stats' and `stbf' to `from_stats'.
  1632.     Return error condition if original file could not be renamed or
  1633.     unlinked. 
  1634.  
  1635.     * rm.c: Rename global `force_flag' to `ignore_errors' and change its
  1636.     meaning so that it does not overlap with `override_mode'.
  1637.     (main): Have -f +force set override_mode.  If override_mode is
  1638.     set, turn off interactive.
  1639.     (rm): Simplify checks for whether to query the user, based on
  1640.     the new relationship between override_mode and interactive.
  1641.  
  1642. Sun Mar  4 23:39:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1643.  
  1644.     * ln.c (main): Reword an error message to be more like mv's.
  1645.  
  1646.     * rmdir.c: Move global `errors' into main instead of having 
  1647.     error set it.
  1648.  
  1649.     * mkdir.c: Move global `errors' into main and have make_path
  1650.     return an error status instead of having error set it.
  1651.  
  1652.     * chmod.c: Move global `errors' into main and have
  1653.     change_file_mode and change_dir_mode return an error status
  1654.     instead of setting it in nonfatal_perror.
  1655.  
  1656. Sat Mar  3 13:59:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1657.  
  1658.     * ln.c (main): Don't strip leading dirs from argv[0].
  1659.  
  1660.     * ln.c (confirm), mv.c (yes, do_move),
  1661.     cp-aux.c (user_confirm_overwriting), rm.c (rm, yesno, check_stack):
  1662.     Print query messages to stderr instead of stdout, for POSIX.
  1663.     Include program name in messages.
  1664.  
  1665. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  1666.  
  1667.     * cp.c (copy): Don't unlink directories with flag_force
  1668.       (`-f').  Also avoid using force when not necessary.
  1669.       Always copy fifo's and symbolic links as themselves.
  1670.  
  1671.     * cp.c (copy_reg): Make int scan first, char scan then, to
  1672.       find frist non-zero byte.  This to avoid false hole
  1673.       creation.
  1674.  
  1675. Sat Mar  3 10:22:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1676.  
  1677.     * mv.c: Rename `pgm' to `program_name'.  Move global `errors'
  1678.     into main.  Have do_move and movefile return an error status
  1679.     instead having error set it.  Remove global vars `args'
  1680.     and `args_left'.
  1681.     (main): Rename `ac' and `av' to `argc' and `argv' and use them
  1682.     and `optind' instead of `args' and `args_left'.
  1683.  
  1684.     * cp.c (copy): Don't ignore errors other than EPERM from chown.
  1685.  
  1686. Fri Mar  2 16:20:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1687.  
  1688.     * rm.c (main, usage): Allow -R as a synonym for -r, for POSIX.
  1689.  
  1690.     * cp.c (copy): If flag_preserve, preserve the owner and group
  1691.     if possible, as well as mode.
  1692.     (main): Allow -R as a synonym for -r option, for POSIX.
  1693.     * cp-aux.c (usage): Mention -R.
  1694.  
  1695. Tue Feb 27 11:49:04 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1696.  
  1697.     * cp.c (copy): If not recursive, copy special files and
  1698.     symlinks like regular files and omit fifos.
  1699.  
  1700. Mon Feb 26 19:55:24 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1701.  
  1702.     * ls.c (print_long_format): If time is in the future, print the year.
  1703.     Make the cutoff for old files 6 months not 300 days.
  1704.  
  1705. Mon Feb 26 13:31:07 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1706.  
  1707.     * touch.c, Makefile: Use getdate.y instead of unctime.y.
  1708.  
  1709.     * touch.c: Remove posixtime.
  1710.     (main): Check for error from posixtime.
  1711.     posixtime.y: New file.
  1712.  
  1713.     * touch.c: Change a few cryptic error messages.
  1714.     Include <errno.h> not <sys/errno.h>.
  1715.     (just_set_amtime): New variable.
  1716.     (touch): Add if (just_set_amtime) code.
  1717.  
  1718. Mon Feb 26 15:03:29 1990  Torbj|rn Granlund  (tege at echnaton)
  1719.  
  1720.     * cp.c (copy): Test for recursive copy in DIR alternative in
  1721.       the switch statement, so all file types are copied correctly
  1722.       even in a non-recursive copy.
  1723.     * cp.c (copy): Return after having created a symlink, since
  1724.       chmod and utimes dereference, and would affect the symlink
  1725.       target.  Remove test for symlinks after switch.
  1726.  
  1727. Sun Feb 25 18:31:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1728.  
  1729.     * Makefile: Compile ls after vdir so systems with a cc that
  1730.     can't do -c -o don't have to compile ls.c twice for ls.
  1731.  
  1732.     * dd.c (usage): Add braces around alternatives.
  1733.  
  1734.     * ls.c (print_long_format): Always print the group, for POSIX.
  1735.     (decode_switches): Make -g option a no-op for BSD users.
  1736.     (usage): Remove +group option.
  1737.  
  1738. Wed Feb 21 11:13:26 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1739.  
  1740.     * ln.c (error): New function.
  1741.     (main, do_link): Call error instead of fprintf and exit.
  1742.     (main): Recognize new -d +directory option to allow superuser to
  1743.     make hard links to dirs, like the BSD ln -f option.
  1744.     (do_link): Don't allow hard links to dirs (they are hard to
  1745.     get rid of -- rmdir and unlink don't do it), unless -d was given.
  1746.     (usage): Mention -d +directory option.
  1747.  
  1748.     * rmdir.c (main): Remove trailing slashes from args (added by
  1749.     shell file completion but the rmdir syscall can't handle them).
  1750.     * mkdir.c (main): Remove trailing slashes from args, for
  1751.     uniformity with rmdir (you can't do file completion on dirs
  1752.     that haven't been made yet . . .).
  1753.  
  1754.     * mv.c: Rename global var `nargs' to `args_left' to avoid
  1755.     conflict with undocumented BSD libc function (the new name is
  1756.     clearer, anyway).
  1757.  
  1758. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1759.  
  1760.     * dd.c: Use new global var `program_name' in error messages
  1761.     instead of hardcoded "dd".
  1762.     (main): Set program_name from argv[0].
  1763.  
  1764.     * chmod.c, head.c, tail.c (main): Don't strip leading dirs
  1765.     from argv[0].
  1766.     (basename): Function removed.
  1767.  
  1768.     * rm.c (main): Don't strip leading dirs from argv[0].
  1769.  
  1770. Mon Feb 19 14:34:18 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1771.  
  1772.     * rm.c (main): Strip trailing slashes from each arg.
  1773.  
  1774. Thu Feb 15 13:23:52 1990  David J. MacKenzie  (djm at rice-chex)
  1775.  
  1776.     * Makefile [HPUX CFLAGS]: Add -DUTIMES_MISSING.
  1777.  
  1778. Wed Feb 14 15:01:18 1990  David J. MacKenzie  (djm at rice-chex)
  1779.  
  1780.     * Makefile (dist): Don't make a non-compressed tar file.
  1781.  
  1782.     * mv.c (do_move): Refuse to copy non-regular files across filesystems.
  1783.  
  1784. Tue Feb 13 15:06:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1785.  
  1786.     * touch.c (getname): New function.
  1787.     (main): Use it.
  1788.  
  1789. Mon Feb 12 11:30:45 1990  David J. MacKenzie  (djm at rice-chex)
  1790.  
  1791.     * ln.c (do_link): Check error return from unlink.
  1792.     Include errno.h.
  1793.  
  1794.     * du.c (main): Check error return from stat.
  1795.     (str_copyc, str_concatc): Don't return a value, since it is
  1796.     ignored. 
  1797.  
  1798.     * cp.c (copy): Check error return from unlink and chmod.  Fix
  1799.     typo in call to error.
  1800.  
  1801.     * mv.c (do_move): Check error return of fchmod/chmod and utime[s].
  1802.     (rename): Check error return of unlink.
  1803.  
  1804.     * Makefile Definitions of preprocessor macros moved from
  1805.     cp.c and mv.c.  HAVE_FTRUNCATE changed to FTRUNCATE_MISSING.
  1806.     * Makefile, dirlib.c: NEED_MKDIR changed to MKDIR_MISSING.
  1807.     * mv.c, cp.c: Change USG ifdefs to UTIMES_MISSING.
  1808.  
  1809. Sun Feb 11 17:50:29 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1810.  
  1811.     * chmod.c (usage): Add yet another ellipsis.
  1812.  
  1813. Sun Feb 11 16:41:30 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1814.  
  1815.     * cp.c (copy_reg): Use HAVE_FTRUNCATE to decide whether to
  1816.     use ftruncate().
  1817.     (main): Use GETGROUPS_MISSING to decide whether to use getgroups().
  1818.     [hpux || !USG]: Define HAVE_FTRUNCATE.
  1819.     [USG && !hpux]: Define GETGROUPS_MISSING.
  1820.     mv.c (rename): Put in #ifdef RENAME_MISSING not #ifdef USG.
  1821.     (do_move): Use FCHMOD_MISSING to decide whether to use fchmod().
  1822.     [USG && !hpux]: Define FCHMOD_MISSING and RENAME_MISSING.
  1823.  
  1824. Fri Feb  9 10:25:03 1990  David J. MacKenzie  (djm at rice-chex)
  1825.  
  1826.     * mv.c (movefile): Remove trailing slashes from FROM (some
  1827.     filename completion systems add them for dirs, and they cause
  1828.     the rename syscall to fail).
  1829.  
  1830. Thu Feb  8 22:50:12 1990  Torbj|rn Granlund  (tege at sics.se)
  1831.  
  1832.     * cp.c (copy_reg): Change error handling after lseek, since
  1833.       this is a fatal error.  Also change error message to
  1834.       something more generally understood.
  1835.     * Handle files that end in a zero block on USG systems.
  1836.  
  1837.     * cp-aux.c (error): Use FATAL to recog fatal errs.
  1838.  
  1839. Thu Feb  8 21:25:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1840.  
  1841.     * ln.c: Remove incorrect comment.
  1842.  
  1843.     * cp.c, cp-aux.c (usage): Change +dereference option to
  1844.     +no-dereference, since dereferencing is done by default and
  1845.     the option turns it off.
  1846.  
  1847. Mon Feb  5 17:29:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1848.  
  1849.     * Version 1.0 released.
  1850.  
  1851. Local Variables:
  1852. mode: indented-text
  1853. left-margin: 8
  1854. version-control: never
  1855. End:
  1856.